/* 根节点样式 */
.root {
    -fx-background-color: #f8f9fa;
    -fx-font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    -fx-font-size: 14px;
}

/* 菜单栏样式 */
.menu-bar {
    -fx-background-color: #a2a5a8;
    -fx-text-fill: white;
    -fx-font-size: 14px;
    -fx-padding: 0;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.2), 5, 0, 0, 2);
    -fx-border-color: #979b9f;
    -fx-border-width: 0 0 1px 0;
}

.menu-bar .menu {
    -fx-background-color: transparent;
    -fx-text-fill: white;
    -fx-padding: 8px 15px;
    -fx-cursor: hand;
}

.menu-bar .menu:hover {
    -fx-background-color: #34495e;
}

.menu-bar .menu:showing {
    -fx-background-color: #34495e;
}

.menu-bar .menu-item {
    -fx-background-color: white;
    -fx-text-fill: #2c3e50;
    -fx-padding: 8px 15px;
    -fx-cursor: hand;
}

.menu-bar .menu-item:hover {
    -fx-background-color: #f0f2f5;
    -fx-text-fill: #3498db;
}

.menu-bar .menu-item:armed {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #3498db;
}

.menu-bar .menu-item .graphic {
    -fx-padding: 0 8px 0 0;
}

.menu-bar .menu-item .label {
    -fx-text-fill: inherit;
}

.menu-bar .menu-item:focused {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #3498db;
}

.menu-bar .separator:horizontal {
    -fx-background-color: #e0e0e0;
    -fx-padding: 0 5px;
}

.menu-bar .context-menu {
    -fx-background-color: white;
    -fx-background-radius: 6px;
    -fx-border-radius: 6px;
    -fx-border-color: #e0e0e0;
    -fx-border-width: 1px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 5, 0, 0, 1);
    -fx-padding: 5px;
}

/* 侧边导航栏样式 */
.side-nav {
    -fx-background-color: #ffffff;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.05), 3, 0, 0, 1);
    -fx-min-width: 160px;
    -fx-max-width: 160px;
}

.nav-button {
    -fx-background-color: transparent;
    -fx-text-fill: #2c3e50;
    -fx-font-size: 14px;
    -fx-pref-width: 140px;
    -fx-pref-height: 40px;
    -fx-alignment: center-left;
    -fx-padding: 10px 15px;
    -fx-border-radius: 6px;
    -fx-background-radius: 6px;
    -fx-cursor: hand;
}

.nav-button:hover {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #3498db;
}

.selected {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #3498db;
    -fx-font-weight: bold;
}

/* 内容区域样式 */
.content-area {
    -fx-background-color: #ffffff;
    -fx-spacing: 20px;
}

/* 搜索区域样式 */
.search-box {
    -fx-background-color: #f8f9fa;
    -fx-padding: 10px;
    -fx-border-radius: 4px;
    -fx-background-radius: 4px;
    -fx-border-color: #e0e0e0;
    -fx-border-width: 1px;
}

.search-field {
    -fx-background-color: white;
    -fx-text-fill: #2c3e50;
    -fx-font-size: 14px;
    -fx-padding: 8px 12px;
    -fx-border-radius: 4px;
    -fx-background-radius: 4px;
    -fx-border-color: #e0e0e0;
    -fx-border-width: 1px;
}

.search-label {
    -fx-text-fill: #2c3e50;
    -fx-font-size: 14px;
    -fx-padding: 0 5px;
}

.search-combobox {
    -fx-pref-height: 36px;
    -fx-min-height: 36px;
    -fx-max-height: 36px;
    -fx-background-radius: 6px;
    -fx-border-radius: 6px;
    -fx-border-color: #e0e0e0;
    -fx-padding: 0px 8px;
    -fx-font-size: 14px;
    -fx-background-color: white;
    -fx-text-fill: #2c3e50;
    -fx-cursor: hand;
    -fx-alignment: center-left;
}

.search-combobox:hover {
    -fx-border-color: #3498db;
    -fx-effect: dropshadow(gaussian, rgba(52,152,219,0.2), 3, 0, 0, 1);
}

.search-combobox:focused {
    -fx-border-color: #3498db;
    -fx-border-width: 2px;
    -fx-effect: dropshadow(gaussian, rgba(52,152,219,0.3), 5, 0, 0, 1);
}

/* 下拉框箭头按钮样式 */
.search-combobox .arrow-button {
    -fx-background-color: transparent;
    -fx-padding: 0 8px 0 0;
    -fx-min-height: 36px;
    -fx-pref-height: 36px;
    -fx-max-height: 36px;
}

.search-combobox .arrow {
    -fx-background-color: #95a5a6;
    -fx-shape: "M 0 0 L 4 4 L 8 0 Z";
    -fx-padding: 4px;
    -fx-translate-y: -2px;
}

.search-combobox .arrow-button:hover .arrow {
    -fx-background-color: #3498db;
}

/* 下拉列表样式 */
.search-combobox .list-view {
    -fx-background-color: white;
    -fx-background-radius: 6px;
    -fx-border-radius: 6px;
    -fx-border-color: #e0e0e0;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 5, 0, 0, 1);
    -fx-padding: 5px;
}

/*空内容时的样式 */
.search-combobox .list-view .placeholder {
    -fx-background-color: #f8f9fa;
    -fx-alignment: center;
    -fx-padding: 8px;
}

.search-combobox .list-view .placeholder .label {
    -fx-text-fill: #95a5a6;
    -fx-font-size: 14px;
    -fx-font-style: italic;
}

/* 下拉列表项样式 */
.search-combobox .list-cell {
    -fx-background-color: transparent;
    -fx-text-fill: #2c3e50;
    -fx-padding: 8px 12px;
    -fx-font-size: 14px;
    -fx-min-height: 36px;
    -fx-pref-height: 36px;
    -fx-alignment: center-left;
}

.search-combobox .list-cell:hover {
    -fx-background-color: #f0f2f5;
    -fx-text-fill: #3498db;
}

/* 下拉列表滚动条样式 */
.search-combobox .scroll-bar:vertical {
    -fx-background-color: transparent;
    -fx-pref-width: 8px;
}

.search-combobox .scroll-bar:vertical .track {
    -fx-background-color: transparent;
}

.search-combobox .scroll-bar:vertical .thumb {
    -fx-background-color: #e0e0e0;
    -fx-background-radius: 4px;
}

.search-combobox .scroll-bar:vertical .thumb:hover {
    -fx-background-color: #bdc3c7;
}

.search-combobox .scroll-bar:vertical .increment-button,
.search-combobox .scroll-bar:vertical .decrement-button {
    -fx-background-color: transparent;
    -fx-padding: 0;
}

.search-combobox .scroll-bar:vertical .increment-arrow,
.search-combobox .scroll-bar:vertical .decrement-arrow {
    -fx-shape: "";
    -fx-padding: 0;
}

.search-button {
    -fx-background-color: #3498db;
    -fx-text-fill: white;
    -fx-font-size: 14px;
    -fx-padding: 8px 15px;
    -fx-border-radius: 4px;
    -fx-background-radius: 4px;
    -fx-cursor: hand;
}

.search-button:hover {
    -fx-background-color: #2980b9;
}

.clear-button {
    -fx-background-color: #95a5a6;
    -fx-text-fill: white;
    -fx-font-size: 14px;
    -fx-padding: 8px 15px;
    -fx-border-radius: 4px;
    -fx-background-radius: 4px;
    -fx-cursor: hand;
}

.clear-button:hover {
    -fx-background-color: #7f8c8d;
}

/* 表格样式 */
.data-table {
    -fx-background-color: white;
    -fx-border-color: #e0e0e0;
    -fx-border-width: 1px;
    -fx-border-radius: 6px;
    -fx-background-radius: 6px;
}

.table-column {
    -fx-alignment: center-left;
    -fx-padding: 10px;
    -fx-font-size: 16px;
}

.data-table .column-header {
    -fx-background-color: #f8f9fa;
    -fx-text-fill: #2c3e50;
    -fx-font-weight: bold;
    -fx-border-color: #e0e0e0;
    -fx-border-width: 0 0 1 0;
}


.data-table .table-row-cell {
    -fx-border-color: #f0f0f0;
    -fx-border-width: 0 0 1 0;
}

.data-table .table-row-cell:odd {
    -fx-background-color: #f8f9fa;
}

.data-table .table-row-cell:even {
    -fx-background-color: white;
}

.data-table .table-row-cell:hover {
    -fx-background-color: #e3f2fd;
}

/* 表格选中行样式 */
.data-table .table-row-cell:selected {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #2c3e50;
}

.data-table .table-row-cell:selected .text {
    -fx-fill: #2c3e50;
}

/* 表格操作按钮样式 */
.data-table .table-row-cell .button {
    -fx-background-color: transparent;
    -fx-border-color: transparent;
    -fx-text-fill: #3498db;
    -fx-font-size: 14px;
    -fx-font-weight: normal;
    -fx-padding: 2px 6px;
    -fx-cursor: hand;
    -fx-pref-width: 50px;
    -fx-pref-height: 24px;
    -fx-background-radius: 3px;
    -fx-border-radius: 3px;
}

.data-table .table-row-cell .button:hover {
    -fx-background-color: #f0f7fd;
    -fx-text-fill: #2980b9;
}

.data-table .table-row-cell .button:pressed {
    -fx-background-color: #e3f2fd;
    -fx-text-fill: #1c6ea4;
}

/* 按钮样式 */
.add-button {
    -fx-background-color: #2ecc71;
    -fx-text-fill: white;
    -fx-font-size: 14px;
    -fx-padding: 8px 15px;
    -fx-border-radius: 4px;
    -fx-background-radius: 4px;
    -fx-cursor: hand;
}

.add-button:hover {
    -fx-background-color: #27ae60;
}

/* 标题样式 */
.section-header {
    -fx-text-fill: #2c3e50;
    -fx-font-size: 16px;
    -fx-font-weight: bold;
    -fx-padding: 0 0 10px 0;
}

